package com.synjones.zeuscloudapp.controller;

import com.synjones.zeuscloudapp.service.config.ConfigService;
import com.synjones.zeuscloudapp.util.DataPack;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * 获取配置接口
 * @author yys
 * Description: 获取配置接口
 * @date created in 14:53 2018-07-04
 * Modified by:
 */
@RestController
@RequestMapping("/Api")
public class ConfigController {
    private static final Logger LOG = LoggerFactory.getLogger(ConfigController.class);

    @Resource
    private ConfigService configService;
    @RequestMapping(value = "/getConfig" , produces = "application/json;encoding=utf-8")
    public DataPack getMerchantList(HttpServletRequest request){
        return configService.buildDataPack(request);
    }

}
